<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class RegionProvinceAgent extends Model
{
    protected $table = 'ims_yz_region_province_agent';
    protected $guarded = [''];
    public $timestamps = false;
    
    protected $fillable = [
        'region_id', 'province_id', 'province_name', 'agent_id', 
        'recruiter_id', 'created_at', 'updated_at', 'deleted_at'
    ];
    
    /**
     * 关联地区代理信息
     */
    public function regionAgent()
    {
        return $this->belongsTo(RegionAgent::class, 'region_id', 'id');
    }
}

